﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VonaJobs.BLL;
using VonaJobs.DAL.DAO;

namespace VonaJobs.UI.Employers
{
    public partial class ChangePassword : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void ChangeEmpPassword(object o,EventArgs eventArgs)

        {
            try
            {
                EmployerUser employerUser = new EmployerUser();
                employerUser.Email = txtEmail.Value;
                employerUser.Password = txtCurrentPassword.Value;
                employerUser.NewPassWord = txtNewPassword.Value;
                EmployerUserManager employerUserManager=new EmployerUserManager();
                string msg = employerUserManager.ChangeEmpPassword(employerUser);


            }
            catch (Exception)
            {
                
                throw;
            }
        
        }








    }
}